package com.xianyu.us.service.impl;

import java.util.Date;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xianyu.us.dao.UsShopDao;
import com.xianyu.us.pojo.entity.UsMsgs;
import com.xianyu.us.pojo.entity.UsShops;
import com.xianyu.us.pojo.entity.UsUser;
import com.xianyu.us.pojo.vo.JsonResult;
import com.xianyu.us.service.UsShopsService;
 
/**
 *  商品详情页实现类
 * @author dengzeming
 *
 */
@Service
public class UsShopsServiceImpl implements UsShopsService{
	@Autowired UsShopDao usShopDao;

	@Transactional
	@Override
	public UsShops findShopsObjectById(Integer commodityId) {
		System.out.println(commodityId);
		if(commodityId==null||commodityId<=0)
			throw new IllegalArgumentException("请选择商品");
		UsShops findShopsObjectById = usShopDao.findShopsObjectById(commodityId);
		return findShopsObjectById;
	}

}
